<template>
  <ChartBox width="100%" height="100%" :title="this.$window.title.title6">
    <div class="mydata6-box" ref="hot_ref">
      <div class="box box1">
        <div class="box-title">{{this.yuqingfenxi.yuqingfenxititle1}}</div>
        <img src="../../../assets/img/Lark20210806-165353.png" alt="" />
        <div class="box-num">
          累计:
          <div class="box-num-content" style="color:yellow">{{this.yuqingfenxi.yuqingfenxi1}}</div>
        </div>
      </div>
      <div class="box box2">
        <div class="box-title">{{this.yuqingfenxi.yuqingfenxititle2}}</div>
        <img src="../../../assets/img/组 1962.png" alt="" />
        <div class="box-num">
          累计:
          <div class="box-num-content" style="color:red">{{this.yuqingfenxi.yuqingfenxi2}}</div>
        </div>
      </div>
      <div class="box box3">
        <div class="box-title">{{this.yuqingfenxi.yuqingfenxititle3}}</div>
        <img src="../../../assets/img/组 1964.png" alt="" />
        <div class="box-num">
          累计:
          <div class="box-num-content" style="color:yellow">{{this.yuqingfenxi.yuqingfenxi3}}</div>
        </div>
      </div>
      <div class="box box4">
        <div class="box-title">{{this.yuqingfenxi.yuqingfenxititle4}}</div>
        <img src="../../../assets/img/Lark20210806-165332.png" alt="" />
        <div class="box-num">
          累计:
          <div class="box-num-content" style="color:cyan">{{this.yuqingfenxi.yuqingfenxi4}}</div>
        </div>
      </div>
    </div>
  </ChartBox>
</template>

<script>
/* eslint-disable */ 
// import { mapState } from 'vuex';
import ChartBox from "@/views/components/ChartBox.vue";

export default {
  components: {
    ChartBox,
  },
  data() {
    return {
      xAxisData: [], //x轴数据
      seriesincome: [], //y轴数据
      yuqingfenxi:{},
      screenWidth:document.body.clientWidth,
      screenHeight:document.body.clientHeight
    };
  },
    created() {
    this.yuqingfenxi = this.$window.yuqingfenxi
  },
  mounted() {
    window.addEventListener("resize", this.screenAdapter);
    this.screenAdapter();
  },
  methods: {
     screenAdapter() {
      this.titleFontSize = this.$refs.hot_ref.offsetWidth 
      this.titleFontHeight = this.$refs.hot_ref.offsetHeight  
    },
  },
};
</script>

<style scoped lang='scss'>
@import "../../../assets/css/parkview.scss";

.mydata6-box {
  min-width: $-pv-minWidth;
  position: relative;
  width: 90%;
  height: 70%;
  left: 5%;
  
  // background-color: rgb(243, 226, 229);
  .box {
    position: absolute;
    width: 30%;
    height: 35%;
    // background-color: rgb(197, 181, 184);  
    .box-title {
      position: absolute;
      width: 100%;
      height: 20%;
      text-align: center;
      font-size: 8rem;
      color: #fff;
    }
    img{
      position: absolute;
      left: 15%;
      top: 40%;
      width: 35%;
      height: 90%;
      // background-color: pink;
    }
    .box-num{
      position: absolute;
      width: 30%;
      height: 60%;
      // background-color: blue;
      // padding-top: 6%;
      right: 20%;
      top: 58%;
      color: #fff;
      font-size: 5rem;
      // background-color: blue;
      .box-num-content{
        margin-top: 13%;
        font-size: 9rem;
      }
    }
  }
  .box1{
    left: 15%;
    top: 25%;
  }
  .box3{
    left: 15%;
    top: 75%;
  }
  .box2{
    right:15%;
    top: 25%;
  }
  .box4{
    right: 15%;
    top: 75%;
  }
}
</style>